/datum/surgery/robotimizing
	name = "cybernetic conversion"
	steps = list(/datum/surgery_step/incise, /datum/surgery_step/clamp_bleeders, /datum/surgery_step/retract_skin, /datum/surgery_step/incise, /datum/surgery_step/retract_skin, /datum/surgery_step/nanites)
	species = list(/mob/living/carbon/human)
	location = "chest"


//handle cavity
/datum/surgery_step/nanites
	implements = list(/obj/item/weapon/cyborger = 100, /obj/item/robot_parts/robot_suit = 25, /obj/item/device/mmi = 5)
	time = 60

/datum/surgery_step/nanites/preop(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool, datum/surgery/surgery)
	user.visible_message("<span class='notice'>[user] begins to install cybernetics in [target].</span>")

/datum/surgery_step/nanites/success(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool, datum/surgery/surgery)
	user.visible_message("<span class='notice'>[user] succeeds and activates [target]'s newfound form.</span>")
	del(tool)
	target.dna.mutantrace = "robot"
	target.s_tone = "222"
	target.say("Activation Complete. My internal codename is: [target.real_name].")
	target.update_icons()
	target.revive()
	return 1